设置LDAP认证登录后,发现设置错误导致无法登陆Jenkins。为了去除认证登录的设置,可以采取如下操作:
1.停止jenkins
2.修改$JENKINS_HOME下的config.xml (一般为 /root/.jenkins下)
- 将
true 元素中的true改为false - 将
和 元素的内容删掉
3.启动Jenkins
进入jenkins之后
1.首先进入全局安全配置
2.设置如下,并保存后退出
3.进入管理用户,将之前配置错误的用户干掉
4.重新新建用户
5.回到之前的全局安全配置中,授权策略选择==项目矩阵授权策略==,在添加用户组中输入刚才新建的用户“admin”–>添加,为admin用户授权完成后,保存即可